package org.dromara.system.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.system.domain.ProductsLine;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 产品线视图对象 products_line
 *
 * @author Lion Li
 * @date 2025-07-14
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ProductsLine.class)
public class ProductsLineVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    private Long userId;

    /**
     * 产品线编码
     */
    @ExcelProperty(value = "产品线编码")
    private String code;

    /**
     * 品类主键
     */
    @ExcelProperty(value = "品类主键")
    private Long brandId;

    private String brandName;
    /**
     * 产品线名称
     */
    @ExcelProperty(value = "产品线名称")
    private String lineName;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String image;


    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "image")
    private String imageUrl;


    /**
     * 状态 0上架 1下架
     */
    @ExcelProperty(value = "状态 0上架 1下架")
    private Integer status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    private Date createTime;
}
